package com.pda.xinma.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinma.R;
import com.pda.xinma.bean.HnadingInDetailListBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class HandingInDetailAdapter extends BaseAdapter<HnadingInDetailListBean.InfoVoListBean> {
    public HandingInDetailAdapter(int layoutResId, @Nullable List<HnadingInDetailListBean.InfoVoListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HnadingInDetailListBean.InfoVoListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_productModelAndBatch,item.getProductModelAndBatch());
        helper.setText(R.id.tv_container,"桶码编号："+item.getContainer());
        helper.setText(R.id.tv_indexNo,"桶号    ："+item.getIndexNo()+"");
        helper.setText(R.id.tv_weight,"重量    ："+item.getWeight());
        helper.setText(R.id.tv_actualWeight,"称重    ："+item.getActualWeight());
        helper.setText(R.id.tv_status,item.getDetailCarryStatusStr());
    }
}
